package com.alibaba.dubbo.registry.common.domain;

import java.util.Arrays;

/**
 * used for dubbo rest
 * @author xuchangyue
 */
public class Invocation extends Entity {

    private static final long serialVersionUID = 3894617128391009408L;

    private String service;
    private String method;
    private String zkAddress;
    private String[] argTypes;
    private Object[] arguments;
    private String isPassedBy = "false";

    public String getService() {
        return service;
    }
    public void setService(String service) {
        this.service = service;
    }
    public String getMethod() {
        return method;
    }
    public void setMethod(String method) {
        this.method = method;
    }
    public String getZkAddress() {
        return zkAddress;
    }
    public void setZkAddress(String zkAddress) {
        this.zkAddress = zkAddress;
    }
    public String[] getArgTypes() {
        return argTypes;
    }
    public void setArgTypes(String[] argTypes) {
        this.argTypes = argTypes;
    }
    public Object[] getArguments() {
        return arguments;
    }
    public void setArguments(Object[] arguments) {
        this.arguments = arguments;
    }
    public String getIsPassedBy() {
        return isPassedBy;
    }
    public void setIsPassedBy(String isPassedBy) {
        this.isPassedBy = isPassedBy;
    }

    public String toString() {
        return "Invocation [service=" + service + ", method=" + method
                + ", zkAddress=" + zkAddress + ", argTypes="
                + Arrays.toString(argTypes) + ", arguments="
                + Arrays.toString(arguments) + ", isPassedBy=" + isPassedBy
                + "]";
    }

}
